thermodynamics problem